/**
 * Project Name:cnsy-url-short-service
 * File Name:BootStrapTableQueryResult.java
 * Package Name:cn.cnsy123.shorturls.api.controller.result 
 * Date: 2020年4月28日-上午11:46:00
 * Copyright (c) 2020, yangpengfei@360@126.com All Rights Reserved. 
 *
 */

package cn.cnsy123.shorturls.api.controller.result;

import java.io.Serializable;
import java.util.List;

/**
 * ClassName: BootStrapTableQueryResult
 * 
 * @author yangpengfei
 * @date 2020年4月28日-上午11:46:00
 * @version 1.0
 * @since JDK 1.7
 */
public class BootStrapTableQueryResult<T> implements Serializable {
    
    /**
     * serialVersionUID:TODO(用一句话描述这个变量表示什么). 
     * @since JDK 1.7
     */
    private static final long serialVersionUID = 1580051320627202413L;

    private Long total;
    
    private Long totalNotFiltered;
    
    private List<T> rows;

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }
    
    

    public Long getTotalNotFiltered() {
        return totalNotFiltered;
    }

    public void setTotalNotFiltered(Long totalNotFiltered) {
        this.totalNotFiltered = totalNotFiltered;
    }

    public static long getSerialversionuid() {
        return serialVersionUID;
    }

    public BootStrapTableQueryResult(Long total, List<T> rows) {
        super();
        this.total = total;
        this.rows = rows;
    }
    
    

    public BootStrapTableQueryResult(Long total, Long totalNotFiltered, List<T> rows) {
        super();
        this.total = total;
        this.totalNotFiltered = totalNotFiltered;
        this.rows = rows;
    }

    public BootStrapTableQueryResult() {
        super();
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("BootStrapTableQueryResult [total=").append(total).append(", rows=").append(rows).append("]");
        return builder.toString();
    }
    
    
    

}
